home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / sviluppo / svilupp2 / amphn192.lha / src / messages.h < prev    next >
C/C++ Source or Header  |  1996-11-16  |  1KB  |  33 lines

  1. #ifndef MESSAGES_H
  2. #define MESSAGES_H
  3.  
  4. #define MESSAGE_CONTROLMAIN_INVALID       0    /* Should never occur */
  5. #define MESSAGE_CONTROLMAIN_IMLEAVING      1    /* Notification of exit by player */
  6. #define MESSAGE_CONTROLMAIN_XMITPACKET    2    /* Request by player to transmit packet */
  7. #define MESSAGE_CONTROLMAIN_PLAYFILE      3    /* Request to launch player */
  8. #define MESSAGE_CONTROLMAIN_REQCLOSED     4    /* Sent by File Requester to tell main to re-enable it's menu item */
  9. #define MESSAGE_CONTROLMAIN_STOPPLAYING   5    /* Sent by whomever to tell Main to Ctrl-c the sound player */
  10. #define MESSAGE_CONTROLMAIN_BROWSEROPEN   6    /* Sent by browser to tell main it's open */
  11. #define MESSAGE_CONTROLMAIN_BROWSERCLOSED 7    /* Sent by browser to tell main it's leaving */
  12.  
  13. struct PlayerMessage
  14. {
  15.     struct Message Message;
  16.     UBYTE ubControl;
  17.     void * data;
  18.     ULONG ulData2;
  19. };
  20.  
  21. /* routines for listening to stored messages */
  22. void PlayUserFile(char * szDefaultDir, char * szOptFile);
  23.  
  24. /* These are for use by amiphone.c */
  25. struct Task * LaunchFileReq(char * szDir);    /* dir to open req in */
  26. struct Task * LaunchPlayer(char * szFile);    /* needs full path! */
  27.  
  28. BOOL SendPlayerMessage(UBYTE ubControl, void * data, ULONG ulData2, struct MsgPort * WaitForReplyAt);
  29.  
  30. void RemovePortSafely(struct MsgPort * RemoveMe);
  31.  
  32. #endif
  33.